package com.our.set.web;

import java.io.Serializable;

import com.our.set.entity.PartDB;
import com.our.set.entity.Resource;
import com.our.set.entity.User;

//用户session信息
public class UserSession implements Serializable {
    private static final long serialVersionUID = -5891346223278285869L;

    private User account;

    //对应企业
    //Company company;

    String clientIp;
    String currentPassword;//当前密码
    String loginTime;

    PartDB partDb;//所选分院
    private Long moduleId;//所选分系统
    private boolean hasResource;
    String moduleName;//
    Resource resource;
    //从appsetup中取出user.edit.by.default的值,供基础数据维护时判断是否更新分院数据
    private String usereditbydefault;

    public UserSession(User account) {
        this.account = account;
    }

    public User getAccount() {
        return account;
    }

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }

    public PartDB getPartDb() {
        return partDb;
    }

    public void setPartDb(PartDB partDb) {
        this.partDb = partDb;
    }

    public Long getModuleId() {
        return moduleId;
    }

    public void setModuleId(Long moduleId) {
        this.moduleId = moduleId;
    }

    public void setAccount(User account) {
        this.account = account;
    }

    public String getUsereditbydefault() {
        return usereditbydefault;
    }

    public void setUsereditbydefault(String usereditbydefault) {
        this.usereditbydefault = usereditbydefault;
    }

    public String getCurrentPassword() {
        return currentPassword;
    }

    public void setCurrentPassword(String currentPassword) {
        this.currentPassword = currentPassword;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public Resource getResource() {
        return resource;
    }

    public void setResource(Resource resource) {
        this.resource = resource;
    }

    public String getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(String loginTime) {
        this.loginTime = loginTime;
    }

    public boolean isHasResource() {
        return hasResource;
    }

    public void setHasResource(boolean hasResource) {
        this.hasResource = hasResource;
    }

    /* public Company getCompany() {
         return company;
     }

     public void setCompany(Company company) {
         this.company = company;
     }*/

}
